@extends('admin.base')
@section('css')
<style>
	#forms h3{
		display: inline-block;
		color: #FFF;
		background-color: #df7366;
		padding: 0.4em;
		font-size:1.2em;
		border-radius: 0.5em;
	}
	#forms h3:hover{
		background-color: deepskyblue;
	}
</style>
@endsection
@section('title','System')
@section('content')
<div class="container">
	<div id="forms">
		<div>
			@foreach($tags as $tag)
			<h3>
				{{ $tag->name }}
			</h3>		
			@endforeach
		</div>
		<form class="form-group" action="{{ URL('siteadmin/tag')}}" method="post">
			<input type="hidden" name="_method" value="POST"/>
			<input type="hidden" name="_token" value="{{csrf_token()}}"/>
			<div class="row form-group">
				<label class="control-label">标签:</label>
				<input type="text" name="tag" placeholder=""/>
				<button type="submit" class="btn btn-primary">
					确认
				</button>
			</div>
		</form>
		<div>
			@foreach($categorys as $category)
			<h3>
				{{ $category->category }}
			</h3>
			@endforeach
		</div>
		<form class="form-group" action="{{ URL('siteadmin/category')}}" method="post">
			<input type="hidden" name="_method" value="POST"/>
			<input type="hidden" name="_token" value="{{csrf_token()}}"/>
			<div class="row form-group">
				<label class="control-label">类别:</label>
				<input type="text" name="category" placeholder=""/>
				<button type="submit" class="btn btn-primary btn-group-sm">
					确认
				</button>
			</div>
		</form>
	</div>
</div>
@endsection
